package com.mybatistest.mapper;

import com.mybatistest.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserInfoXMLMapper {

    List<UserInfo>selectAll();

    Integer insert(UserInfo userInfo);

    Integer update(@Param("username") String username,@Param("id") Integer id);

Integer deleteByUsername(@Param("id") Integer id);

List<UserInfo> selectByName(@Param("username") String username);

    Integer insert1(UserInfo userInfo);

}
